﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service
{
    public class StationService_Design :IStationServcie
    {
        public Task<IEnumerable<StationInfo>> QueryStationsAsync(StationQueryCriteria criteria = null)
        {
            return Task.Run(() =>
            {
                return new List <StationInfo >{
                new StationInfo {
                    StationId = 1,
                    StationName = "测试站点",
                    StationType = "自建站"
                } }.AsEnumerable();
            });
        }
       
        public Task<StationData> GetStationCountDataByIdAsync(string countDataId)
        {
            return Task.Run(()=> {
                return new StationData
                {
                    StationDataId = "1",
                    StationId = 1,
                    ElementCode = "123",
                    ElementVal = 1,
                    InsertTime = DateTime.Now
                };
            });
        }

        public Task<StationData> GetStationRealDataByIdAsync(string realDataId)
        {
            return Task.Run(() => {
                return new StationData
                {
                    StationDataId = "1",
                    StationId = 1,
                    ElementCode = "123",
                    ElementVal = 1,
                    InsertTime = DateTime.Now
                };
            });
        }

        public Task<int> DeleteStations(List<int> stationIdList)
        {
            throw new NotImplementedException();
        }

        public Task<int> UpdateStationElementListAsync(int stationId, List<string> elementCodes)
        {
            throw new NotImplementedException();
        }

        public Task<int> InsertOrUpdateStationAsync(StationInfo stationInfo)
        {
            throw new NotImplementedException();
        }

        public Task<int> MapUserWithStationAsync(string userId, List<StationInfo> stationInfos)
        {
            throw new NotImplementedException();
        }
    }
}
